<ion-view view-title={{course.ccoursename}}>
    <ion-nav-buttons side="left">
      <a class='button button-clear ion-chevron-left' href="#/app/home/"></a>
    </ion-nav-buttons>
  <ion-content>
    <!-- <ion-list ng-click="start_practice()"> -->
    <ion-list>
      <ion-item class="icon ion-information-circled" ng-click="select_sub_chapter(pch)">
      <i>{{pch.cchaptername}}</i>
      <p>已做<font color='red'>{{pch.correcttotal + pch.wrongtotal}}</font>, 共<font color='#00CCFF'>{{pch.icount}}</font>题, 正确率<font color='#00CCFF'>{{ 100 * pch.correcttotal / 
      (pch.correcttotal + pch.wrongtotal ) | toInt}}%</font></p>
      </ion-item>
      <ion-item ng-repeat="chapter in chapters" class="icon" ng-class="(chapter.bendgrade == 'TRUE' && chapter.ballowtest != 'TRUE')? 'ion-locked' : 'ion-information-circled'" ng-click="select_sub_chapter(chapter)">
        <i>{{chapter.cchaptername}}</i>
        <p>已做<font color='red'>{{chapter.correcttotal + chapter.wrongtotal}}</font>题,共<font color='#00CCFF'>{{chapter.icount}}</font>题,正确率<font color='#00CCFF'>{{ 100 * chapter.correcttotal / (chapter.correcttotal + chapter.wrongtotal ) | toInt}}%</font></p>
      </ion-item>
    </ion-list>
  </ion-content>
</ion-view>


